package com.example.votemanage.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.votemanage.entity.VoteOption;
import com.example.votemanage.entity.VoteSubject;
import com.example.votemanage.mapper.VoteSubjectMapper;
import com.example.votemanage.service.IVoteSubjectService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xingcheng
 * @since 2024-06-06
 */
@Service
public class VoteSubjectServiceImpl extends ServiceImpl<VoteSubjectMapper, VoteSubject> implements IVoteSubjectService {

    @Override
    public IPage<VoteSubject> selectAllVoteSubject(Page<VoteSubject> page,@Param("vsTitle") String vsTitle) {
        return baseMapper.selectAllVoteSubject(page,vsTitle);
    }

    @Override
    public VoteSubject selectAllSubject(Integer vsId) {
        return baseMapper.selectAllSubject(vsId);
    }


}
